home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / buildMaskSettingMenu.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  3.2 KB  |  90 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  26 Feb 1996
  22. //
  23. //  Description:
  24. //      This procedure creates the status line selection type menu.
  25. //
  26. //  Input Arguments:
  27. //      The parent control that the status line will be created in.
  28. //
  29. //  Return Value:
  30. //      The name of the top layout created.
  31. //        Used for embedding the status line within another layout.
  32. //
  33.  
  34. global proc buildMaskSettingMenu( string $parent ) {
  35. //
  36. //    Build the menu that controls the high level mask
  37. //    settings
  38. //
  39.     setParent -m $parent;
  40.     menu -e -dai $parent;
  41.  
  42. //    menuItem -l "Hierarchy" -c "setSelectMode hierarchy Hierarchy";
  43. //    menuItem -sm true -l "Hierarchy";
  44. //        menuItem -l "Root" -c "setSelectMode root Hierarchy";
  45. //        menuItem -l "Leaf" -c "setSelectMode leaf Hierarchy";
  46. //        menuItem -l "Template" -c "setSelectMode template Hierarchy";
  47. //    setParent -m ..;
  48. //    menuItem -l "Objects" -sm true;
  49.  
  50.         menuItem -l "All Objects"
  51.             -ann "All Object Selection Mode: Select any object"
  52.             -c "setSelectMode allObjects \"All Objects\"";
  53.         menuItem -d true;
  54.         menuItem -l "Animation"
  55.             -ann "Animation Selection: Select Handles and Joints"
  56.             -c "setSelectMode animation Animation";
  57.  
  58. //    setParent -m ..;
  59. //    menuItem -l "Components" -sm true;
  60. //        menuItem -l "All Components" -c "setSelectMode allComponents \"All Components\"";
  61. //        menuItem -d true;
  62.  
  63.         menuItem -l "Polygons"
  64.             -ann "Polygon Selection: Select Poly components"
  65.             -c "setSelectMode polyModeling Polygons";
  66. //    setParent -m ..;
  67. //    menuItem -l "Mixed" -sm true;
  68.  
  69.         menuItem -l "NURBS"
  70.             -ann "NURBS Selection Mode: Marquee to select objects, click to select components"
  71.             -c "setSelectMode nurbsModeling NURBS";
  72.         menuItem -l "Deform"
  73.             -ann "Deformation Selection Mode: Marquee to select objects, click to select components"
  74.             -c "setSelectMode deformations Deform";    
  75.         menuItem -l "Dynamics"
  76.             -ann "Dynamics Selection Mode: Marquee to select objects, click to select components"
  77.             -c "setSelectMode dynamics Dynamics";
  78.         menuItem -l "Rendering"
  79.             -ann "Rendering Selection Mode: Marquee to select objects, click to select components"
  80.             -c "setSelectMode rendering Rendering";
  81.  
  82.     setParent -m ..;
  83.  
  84.     menuItem -d true;
  85.  
  86.     menuItem -l "Initial Default"
  87.             -annotation "Initial Default: Set the pick mask bakc to the initial default setting" 
  88.             -c "selectionMaskReset";
  89. }
  90.